package com.lfk.justweengine.Info;

import ohos.agp.utils.Color;
import ohos.agp.utils.Point;
import ohos.agp.window.service.Display;
import ohos.agp.window.service.DisplayManager;
import ohos.app.Context;

/**
 * UI 默认数据类 待修改
 *
 * @author liufengkai
 *         Created by liufengkai on 15/11/27.
 */
public class UIdefaultData {

    private static Context context;

    public static void init(Context context) {
        UIdefaultData.context = context;
        Display display = DisplayManager.getInstance().getDefaultDisplay(context).get();
        scale = display.getAttributes().scalDensity;
        screenWidth = display.getAttributes().width;
        screenHeight = display.getAttributes().height;
        center = new Point(screenWidth / 2, screenHeight / 2);
        centerInHorizontalX = screenWidth / 2;
    }

    public static final Color sprite_default_color_paint = Color.WHITE;

    public static int screenWidth;

    public static int screenHeight;

    public static int centerInHorizontalX;

    public static float scale;

    public static Point center;

    public static float defaultMusicVolume = 10;
}
